home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / GBOXDRAW.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  54 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   GBOXDRAW.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20. $INCLUDE "DAS-NBV1.INC"
  21. CLS
  22. SCREEN 12
  23. GraphicSETUP
  24. COLOR 7, 0
  25. CLS
  26.  
  27. ? "┌────────────────────────────────────────────────────────────────────────
  28. ? "│ GBoxDRAW C1%, R1%, C2%, R2%, Mask%, Pmode?, Colour?
  29. ? "│
  30. ? "│ PURPOSE: draw a one pixel box with masked pixels
  31. ? "│  PARAMS:   C1% left-most column ( 0 -> 639 )
  32. ? "│            R1% top most row     ( 0 -> 479 )
  33. ? "│            C2% right most column
  34. ? "│            R2% bottom most row
  35. ? "│          Mask% bit-mapped mask for ON/OFF pixels but 0 = Solid border
  36. ? "│            Pm? PutMode          ( 0 ->  4  )
  37. ? "│             C? color number     ( 0 -> 15  )
  38. ? "└─────────────────────────────────────────────────────────────────────────
  39.  
  40. C1% = 270  : C2% = C1% + 99
  41. R1% = 220  : R2% = 320
  42.  
  43. FOR C? = 1 TO 15
  44.   IF Mask% = &h5555 THEN Mask% = &hAAAA ELSE Mask% = &h5555
  45.   GBoxDRAW C1%+C?, R1%-C?, C2%-C?, R2%+C?, Mask%, 3, C?
  46. NEXT
  47. LOCATE 17, 38 : PRINT "DASoft"
  48.  
  49. ' &h5555 = &b0101010101010101
  50. ' &hAAAA = &b1010101010101010
  51.  
  52. WHILE NOT INSTAT : WEND
  53. CLS
  54. SCREEN 0